﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Web;

namespace FlickrXplorer.Web.ViewData
{
    /// <summary>
    /// Holds a collection of <see cref="FlickrXplorer.Web.ViewData.PhotoComment" text="PhotoComment" />s.
    /// </summary>                                                                                       
    public class PhotoCommentViewData
    {
        /// <summary>
        /// User who posted the comment.
        /// </summary>
        public string UserId { get; set;}

        /// <summary>
        /// Gets or sets the total number of <see cref="FlickrXplorer.Web.ViewData.PhotoComment" text="comments" />.
        /// </summary>                                                                                             
        public int Total { get; set; }
        public bool IsAuthenticated { get; set; }

        public PhotoCommentViewData()
        {
            Comments = new ReadOnlyCollection<PhotoComment>(new List<PhotoComment>());
        }

        public IEnumerable<PhotoComment> Comments
        {
            get;
            set;
        }
    }
}
